package com.humanmonth.home.component.page.htree.effect {
	import flash.display.DisplayObject;
	import flash.events.MouseEvent;
	
	import mx.core.Application;

	/**
	 * 鼠标经过时，显视对像属性
	 * @author 林子龙
	 */
	public class DisplayPropertyEffect {
		public function DisplayPropertyEffect() {
		}

		/**
		 * 为对像应用效果 
		 */
		public function applyFilter(obj : DisplayObject) : void {
			obj.addEventListener(MouseEvent.MOUSE_OVER, addFilter);
		}

		/**
		 * 为对像增加过滤器 
		 */
		private function addFilter(event : MouseEvent) : void {
		Application.application.hTree.myProperty.myProperty.dataProvider=event.currentTarget.toTableString();
		}

	}
}